package com.telit.android.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;


/**
 * app_user_location
 * @author 
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AppUserLocation implements Serializable {
    /**
     * 主键id
     */
    @ApiModelProperty(name = "主键")
    @TableId(type= IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @ApiModelProperty(name = "用户id")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    /**
     * 经度
     */
    @ApiModelProperty(name = "经度")
    @NotBlank(message = "经度不能为空")
    private String longitude;

    /**
     * 纬度
     */
    @ApiModelProperty(name = "纬度")
    @NotBlank(message = "纬度不能为空")
    private String latitude;

    /**
     * 创建时间
     */
    @ApiModelProperty(name = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(name = "更新时间")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}